$(function(){
    var str;
    $.each(allData.index,function(i,v){
        $.each(v.haimeiguanggou,function(i,v){
            str = `
            <li class="opacity_img">
            <a href="javascript:void(0)" data-id="${v.haiId}">
              <div class="p-img">
                <img src="${v.haiImg}" alt="">
              </div>
              <div class="p-name">${v.haiTitle}</div>
              <div class="p-price">
                <div class="shop-price">￥${v.haiXianPrice}</div>
                <div class="original-price">￥${v.haiYuanPrice}</div>
              </div>
            </a>
          </li>
            `;
          $('#haimeiguanggou ul').append(str);
          
          $('#haimeiguanggou ul li').eq(i).children('a').click(function () {
            window.location.href="page/goods.html#"+v.haiId
          })
        })
    })
  
  
})